<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Student Address Book Project</title>
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="header-container">
		<div class="header">
			<div class="left">
				<div class="logo"></div>
			</div>
			<div class="right">
			</div>
			<div class="clear"></div>
		</div><!-- END HEADER -->
	</div>
	<div class="content-container">
			<div class="login-form">
				<div class="login-form-header">User Authentication</div>
				<p style="margin-left: 55px;">
					<c:if test="${loginfailed == true}">
					        <b class="error">Invalid username or password.</b>
					</c:if>
				</p>
			
				<form method="post" action="<c:url value='j_spring_security_check'/>" >
					<table style="margin:0 auto">
						<tbody>
							<tr>
								<td>Username:</td>
								<td><input type="text" class="input-control" name="j_username" id="j_username"size="30" maxlength="40"  /></td>
							</tr>
							<tr>
								<td>Password:</td>
								<td><input type="password" class="input-control" name="j_password" id="j_password" size="30" maxlength="32" /></td>
							</tr>
							<tr>
								<td></td>
								<td><input type="submit" value="Login" class="stdbut"/></td>
							</tr>
						</tbody>
					</table>
				<!-- <a href="<c:url value="/j_spring_security_logout" />" >Logout</a> <br/> -->
				</form>
			</div>
		</div>      
</body>
</html>